using System;

namespace Logic.Locations
{
    public class CustomRandom : ICustomRandom
    {
        private static readonly Random Random = new Random();

        public int GetSign()
        {
            return Random.Next(10) <= 5 ? -1 : 1;
        }

        public double GetProcent(byte goodLuck)
        {
            return Random.Next(goodLuck)/100;
        }

        public int GetRandom(int number)
        {
            return Random.Next(number);
        }
    }
}